<div ng-include src="'tpl/public/header.html'"></div>
<div class="contents">
  <ol class="breadcrumb">
    <li><a href="#/index/panel">首页</a></li>
    <li class="active">供应方列表</li>
  </ol>

  <form class="form-inline search-box" role="form" ng-submit="search()" novalidate>
    <div class="form-group">
      <label class="sr-only" >对接人公司</label>
      <input type="text" class="form-control" placeholder="对接人公司" ng-model="searchMap.accessCompany">
    </div>
    <div class="form-group">
      <label class="sr-only" >对接人姓名</label>
      <input type="text" class="form-control" placeholder="对接人姓名" ng-model="searchMap.accessName">
    </div>
    <div class="form-group">
      <label class="sr-only" >手机号</label>
      <input type="text" class="form-control" placeholder="手机号" ng-model="searchMap.accessMobile">
    </div> 
    <div class="form-group">
      <label class="sr-only" >邮箱</label>
      <input type="text" class="form-control" placeholder="邮箱" ng-model="searchMap.accessEmail">
    </div>     
    <button type="submit" class="btn btn-primary">查询</button>
  </form>

  <table class="table table-striped table-hover">
    <thead>
      <tr>
        <th width="200">公司</th>
        <th width="150">职位</th>
        <th width="100">对接人</th>
        <th width="150">手机号</th>
        <th width="">地址</th>
        <th width="180">邮箱</th>
        <th width="130">最后更新时间</th>
        <th width="40">操作</th>
      </tr>
    </thead>
    <tbody>
      <tr ng-repeat="item in list">
        <td>
          <a href="#/supplier/flow?accessId={{item.id}}" has-auth where="btn" who="SUPPLIER_FLOW">{{item.accessCompany}}</a>
        </td>
        <td>{{item.accessPosition}}</td>
        <td>{{item.accessName}}</td>
        <td>{{item.accessMobile}}</td>
        <td>{{item.supplierAddress}}</td>
        <td>{{item.accessEmail}}</td>
        <td>{{item.updateDate | date:"yyyy/MM/dd HH:mm"}}</td>
        <td>
          <a href="#/supplier/edit?id={{item.id}}" has-auth where="btn" who="SUPPLIER_EDIT">编辑</a>
        </td>
      </tr>
    </tbody>
  </table>
  <div class="pager-box" ng-include src="'tpl/public/pager.html'" ng-show="list.length > 0"></div>
</div>